import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  { path: '/', name: 'Home', component: () => import('@/views/Home') },

  // 登录相关页面
  {
    path: '/Login',
    name: 'Login',
    component: () => import('@/views/loginPage/Login'),
    meta: { requiresAuth: false }
  },
  {
    path: '/LoginForget',
    name: 'LoginForget',
    component: () => import('@/views/loginPage/LoginForget'),
    meta: { requiresAuth: false }
  },
  {
    path: '/LoginRegister',
    name: 'LoginRegister',
    component: () => import('@/views/loginPage/LoginRegister'),
    meta: { requiresAuth: false }
  },
  {
    path: '/LoginChange',
    name: 'LoginChange',
    component: () => import('@/views/loginPage/LoginChange'),
    meta: { requiresAuth: false }
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
